home *** CD-ROM | disk | FTP | other *** search
/ Hottest 6 / Hottest 6 (1996)(PDSoft)[!].iso / software / videoutils / a-g / ami2d / macros / remdispx.rexx < prev    next >
OS/2 REXX Batch file  |  1978-11-24  |  555b  |  35 lines

  1. /* script to remove x displacement BC's */
  2. options results
  3.  
  4. address ami2d
  5.  
  6. if ~show('l', "rexxmathlib.library") then do
  7.     check = addlib('rexxmathlib.library',0,-30,0)
  8. end
  9.  
  10. 'info(node)'
  11. f1 = result
  12. parse var f1 nd i1a x1a y1a
  13. if i1a = 0 then exit
  14. 'info(node)'
  15. f2 = result
  16. parse var f2 nd i1b x1b y1b
  17. if i1b = 0 then exit
  18. if i1a > i1b then do
  19.     parse var f2 nd i1a x1a y1a
  20.     parse var f1 nd i1b x1b y1b
  21. end
  22.  
  23. in = i1b - i1a
  24.  
  25. 'get inodes'
  26. ni = result
  27. if in > ni then inc = ni
  28. else inc = 1
  29.  
  30. do i=0 to in by inc
  31.     n = i1a + i
  32.     'dispx('n')'
  33. end
  34. exit
  35.